// samsting : this file is auto create.

#include "Ecs/2014-05-26/DescribeInstanceStatusResponse.h"

namespace aliyun { namespace Ecs {

DescribeInstanceStatusResponse::DescribeInstanceStatusResponse() {
}

const string& DescribeInstanceStatusResponse::InstanceStatus::GetInstanceId(void) const {
  return InstanceId_;
}

const string& DescribeInstanceStatusResponse::InstanceStatus::GetStatus(void) const {
  return Status_;
}

const std::vector<DescribeInstanceStatusResponse::InstanceStatus>& DescribeInstanceStatusResponse::GetInstanceStatuses(void) const {
  return InstanceStatuses_;
}

int DescribeInstanceStatusResponse::GetTotalCount(void) const {
  return TotalCount_;
}

int DescribeInstanceStatusResponse::GetPageNumber(void) const {
  return PageNumber_;
}

int DescribeInstanceStatusResponse::GetPageSize(void) const {
  return PageSize_;
}

const char* DescribeInstanceStatusResponse::BaseKey(void) {
  return "DescribeInstanceStatusResponse";
}

void DescribeInstanceStatusResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int InstanceStatuses__length = 0;
  UnmarshallerInt(InstanceStatuses__length, response_map, "DescribeInstanceStatusResponse.InstanceStatuses.Length");
  if(InstanceStatuses__length >= 0) {
    InstanceStatuses_.resize(InstanceStatuses__length);
    for(int i1 = 0; i1 < InstanceStatuses__length; i1++) {
      UnmarshallerString(InstanceStatuses_[i1].InstanceId_, response_map, "DescribeInstanceStatusResponse.InstanceStatuses["+string_ValueOfInt(i1)+"].InstanceId");
      UnmarshallerString(InstanceStatuses_[i1].Status_, response_map, "DescribeInstanceStatusResponse.InstanceStatuses["+string_ValueOfInt(i1)+"].Status");
    } // for(int i1 = 0; i1 < InstanceStatuses__length; i1++) {
  } // if(InstanceStatuses__length >= 0) {

  UnmarshallerInt(TotalCount_, response_map, "DescribeInstanceStatusResponse.TotalCount");
  UnmarshallerInt(PageNumber_, response_map, "DescribeInstanceStatusResponse.PageNumber");
  UnmarshallerInt(PageSize_, response_map, "DescribeInstanceStatusResponse.PageSize");
}


} } // namespace aliyun { namespace Ecs {

// end of file 
